import { defineStore } from 'pinia'
import { IDept } from './index'
export const useDeptStore = defineStore('dept', {
  state: () => ({
    count: 0,
    /**
     *
     */
    dept: {} as IDept
  }),
  getters: {
    double: (state) => state.count * 2
  },
  actions: {
    /**
     * 加一
     */
    increment() {
      this.count++
    }
  }
})
